package com.my.bean;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 入库
 * </p>
 *
 * @author 崔倩倩
 * @since 2018-08-24
 */
@TableName("picking")
public class Picking extends Model<Picking> {

    private static final long serialVersionUID = 1L;

    /**
     * 领料入库id
     */
	private Long id;
    /**
     * 物品种类
     */
	private String kind;
    /**
     * 物品数量
     */
	private Double amount;
    /**
     * 物品价格
     */
	private Double price;
    /**
     * 采购单位
     */
	private String department;
    /**
     * 经办人
     */
	@TableField("purchasing_agent")
	private String purchasingAgent;
    /**
     * 物品入库日期
     */
	private Long date;
    /**
     * 物品名称
     */
	@TableField("item_name")
	private String itemName;

	private List<Stock> stockList;

	/**
	 * 规格
	 */
	private String company;
	/**
	 * 单价
	 */
	private Double unit;
	/**
	 * 总价
	 */
	private Double total;

	/**
	 * 创建时间
	 * @return
	 */
	private Long createtime;

	public Long getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Long createtime) {
		this.createtime = createtime;
	}

	public long getAreaId() {
		return areaId;
	}

	public void setAreaId(long areaId) {
		this.areaId = areaId;
	}

	@TableField("areaid")
	private long areaId;

	public String getCompany() {
		return company;
	}

	public void setCompany(String company) {
		this.company = company;
	}

	public Double getUnit() {
		return unit;
	}

	public void setUnit(Double unit) {
		this.unit = unit;
	}

	public Double getTotal() {
		return total;
	}

	public void setTotal(Double total) {
		this.total = total;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getKind() {
		return kind;
	}

	public void setKind(String kind) {
		this.kind = kind;
	}

	public Double getAmount() {
		return amount;
	}

	public void setAmount(Double amount) {
		this.amount = amount;
	}

	public Double getPrice() {
		return price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}

	public String getDepartment() {
		return department;
	}

	public void setDepartment(String department) {
		this.department = department;
	}

	public String getPurchasingAgent() {
		return purchasingAgent;
	}

	public void setPurchasingAgent(String purchasingAgent) {
		this.purchasingAgent = purchasingAgent;
	}


	public void setDate(Long date) {
		this.date = date;
	}

	public Long getDate() {

		return date;
	}

	public String getItemName() {
		return itemName;
	}

	public void setItemName(String itemName) {
		this.itemName = itemName;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "Picking{" +
				"id=" + id +
				", kind='" + kind + '\'' +
				", amount=" + amount +
				", price=" + price +
				", department='" + department + '\'' +
				", purchasingAgent='" + purchasingAgent + '\'' +
				", date=" + date +
				", itemName='" + itemName + '\'' +
				", stockList=" + stockList +
				", company='" + company + '\'' +
				", unit=" + unit +
				", total=" + total +
				", createtime=" + createtime +
				", areaId=" + areaId +
				'}';
	}
}
